# coding:utf-8

#私有函数和变量
class Cat(object):
    __cat_type = 'cat'


    def __init__(self,name):
        self.name=name

    def __init__(self, name, sex):
        self.name=name
        self.__sex=sex

    def run(self):
        result=self.__run()
        print(result)

    def __run(self):
        return f'{self.__cat_type},小猫 {self.name} {self.__sex}开心的跑'

    def jump(self):
        result = self.__jump()
        print(result)

    def __jump(self):
        return f'{self.__cat_type},小猫 {self.name} {self.__sex} 开心的跳'

cat = Cat(name='喵喵', sex='female')
cat.run()
cat.jump()
print(dir(cat)) #  dir()列出对象的属性和方法
#print(cat._Cat__jump())
